package org.springblade.modules.mes.unit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springblade.modules.mes.unit.entity.UnitEntity;


/**
 * 计量单位
 * @author zhanglianchao
 */
@Mapper
public interface UnitMapper extends BaseMapper<UnitEntity> {

    int countByCode(String code, Long id, String tenantId);

    int setDefault(Long id);

    int setNoDefault();
}
